package br.com.aspas.persistencia;import br.com.aspas.modelo.Sexo;import br.com.aspas.util.AbstractDAO;import java.util.List;public class SexoDao extends AbstractDAO {    public void inserir(Sexo sexo) {        insert(sexo);    }    public Sexo findByPk(Integer pKey) {        return (Sexo) findByPk(Sexo.class, pKey);    }    public Boolean remove(Integer id) {        delete(id,Sexo.class);        return new Boolean(true);    }    public void altera(Sexo sexo) {        update(sexo);    }    public List<Sexo> findAllSexo() {        em = emf.createEntityManager();        List<Sexo> list = em.createQuery("SELECT object(s) FROM Sexo as s ").getResultList();        em.close();        return list;    }}